Skip to main content
GET
/
logs
Get audit logs
curl --request GET \
  --url https://your_a2_service/logs \
  --header 'Authorization: Bearer <token>'
[
  {
    "affected_resource": "<string>",
    "description": "<string>",
    "event_type": "<string>",
    "id": 123,
    "new_value": {},
    "old_value": {},
    "timestamp": "2023-11-07T05:31:56Z",
    "user_email": "<string>",
    "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
]

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Query Parameters

event_types
string[] | null
user_id
string<uuid> | null
user_email
string | null
start_date
string<date-time> | null
end_date
string<date-time> | null

Response

Successful Response

event_type
string
required

The type of event that triggered this audit log (e.g. create, update, delete)

id
integer
required

The id of the audit log entry

user_email
string
required

The email address of the user who performed the action

user_id
string<uuid>
required

The id of the user who performed the action

affected_resource
string | null

The identifier or path of the resource that was modified

description
string | null

The detailed description of the event that occurred

new_value
object | null

The JSON representation of the resource state after the change

old_value
object | null

The JSON representation of the resource state before the change

timestamp
string<date-time>

The datetime when this audit log entry was created